package com.yz.gulimall.order.feign;

import com.yz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yz
 * @create 2021-11-17 15:11
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    //返回spu的详细信息
    @GetMapping("product/spuinfo/skuId/{id}")
    R spuInfoBySkuId(@PathVariable("id") Long skuId);
}